package org.jeecg.modules.bobo.cms.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 文章分类
 * @Author: jeecg-boot
 * @Date:   2020-12-22
 * @Version: V1.0
 */
@Data
@TableName("lb_portal_category")
@ApiModel(value="lb_portal_category对象", description="文章分类")
public class LbPortalCategory implements Serializable {
    private static final long serialVersionUID = 1L;

	/**分类id*/
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "分类id")
	private String id;
	/**分类父id*/
	@Excel(name = "分类父id", width = 15, dictTable = "lb-portal_category", dicText = "name", dicCode = "id")
	@Dict(dictTable = "lb_portal_category", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "分类父id")
	private String parentId;
	/**分类文章数*/
	@Excel(name = "分类文章数", width = 15)
	@ApiModelProperty(value = "分类文章数")
	private Integer postCount;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "enable_status")
	@Dict(dicCode = "enable_status")
	@ApiModelProperty(value = "状态")
	private Integer status;
	/**删除时间*/
	@Excel(name = "删除时间", width = 15)
	@ApiModelProperty(value = "删除时间")
	private Integer deleteTime;
	/**排序*/
	@Excel(name = "排序", width = 15)
	@ApiModelProperty(value = "排序")
	private Double listOrder;
	/**分类名称*/
	@Excel(name = "分类名称", width = 15)
	@ApiModelProperty(value = "分类名称")
	private String name;
	/**分类描述*/
	@Excel(name = "分类描述", width = 15)
	@ApiModelProperty(value = "分类描述")
	private String description;
	/**分类层级关系路径*/
	@Excel(name = "分类层级关系路径", width = 15)
	@ApiModelProperty(value = "分类层级关系路径")
	private String path;
	/**seoTitle*/
	@Excel(name = "seoTitle", width = 15)
	@ApiModelProperty(value = "seoTitle")
	private String seoTitle;
	/**seoKeywords*/
	@Excel(name = "seoKeywords", width = 15)
	@ApiModelProperty(value = "seoKeywords")
	private String seoKeywords;
	/**seoDescription*/
	@Excel(name = "seoDescription", width = 15)
	@ApiModelProperty(value = "seoDescription")
	private String seoDescription;
	/**分类列表模板*/
	@Excel(name = "分类列表模板", width = 15)
	@ApiModelProperty(value = "分类列表模板")
	private String listTpl;
	/**分类文章页模板*/
	@Excel(name = "分类文章页模板", width = 15)
	@ApiModelProperty(value = "分类文章页模板")
	private String oneTpl;
	/**扩展属性*/
	@Excel(name = "扩展属性", width = 15)
	@ApiModelProperty(value = "扩展属性")
	private String more;
	/**父级节点*/
	@Excel(name = "父级节点", width = 15)
	@ApiModelProperty(value = "父级节点")
	private String pid;
	/**是否有子节点*/
	@Excel(name = "是否有子节点", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
	@ApiModelProperty(value = "是否有子节点")
	private String hasChild;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
}
